package com.gitee.fanx.rpc.api;

import com.gitee.fanx.rpc.dto.*;

import java.util.List;
import java.util.Map;

/**
 * @author fanhang
 */
public interface DemoApi {

	String testNoArgs();

	Map<String, Object> sayHello(String name);

	String doSth(String aa, String bb);

	String doSth(String aa, List<UserDto> bb);

	UserResultDto hello(UserDto user);

	PageResponse<UserDto> getList(PageRequest pageRequest);

	TestGeneric<TestGeneric<UserDto>> testGeneric(String aa, TestGeneric<TestGeneric<TestGeneric<TestGeneric<String>>>> data);

	TestResult testResultInnerGeneric(String aa, List<String> list);

	void testReturnVoid(String name);

	default String testDefaultMethod(String name) {
		return "hello: " + name;
	}

	static String testStaticMethod(String name) {
		return "hello: " + name;
	}
}
